package ooday05;
//点
/**
 * 标准JavaBean的规范:
 * 1.成员变量私有，同时提供对应的公开的getter/setter
 * 2.包含公开的无参构造方法
 */
public class Point {

    private String x;
    private  String y;
    public Point(){}

    public String getX(){//getter
        return x;
    }
    public void setX(String x){//setter
        this.x  = x;
    }

    public String getY(){
        return y;
    }
    public void setY(String y){
        this.y = y;
    }


/*
    private int x;
    private  int y;


    public Point(){}

    public int getX(){
        return x;
    }
    public void setX(int x){
        this.x=x;
    }

    public int getY(){
        return y;
    }
    public void setY(int y){
        this.y =y;
    }

 */




}
